import request from '@/utils/request'
import qs from "qs";

// 获取用户群组
export function getUserGroup(data) {
    return request({
      url: '/api/System/UserGroup/' + data,
      method: 'get',
      params: { id: data }
    })
  }

// 设置用户群组
export function setUserGroup(data) {
    return request({
      url: '/api/System/UserGroup',
      method: 'post',
      params: data,
      paramsSerializer: params => {
        return qs.stringify(params, { indices: false })
      }
    })
  }

// 获取用户权限
export function getUserPerm(data) {
    return request({
      url: '/api/System/UserPermission',
      method: 'get',
      params: data
    })
  }